Package com.cisco.pt.ipc.sim.impl
Class NetworkImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.NetworkImpl
Information provided by the PKI file:
\class Network
\brief Network is the entry point for all device configurations in the network. It retrieves devices.
\example network()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionNetworkImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionInformation provided by the PKI file:getDeviceAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:getLinkAt(int index) intdoublegetTotalDeviceAttributeValue(String attributeName) Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
NetworkImpl
public NetworkImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getDevice
Information provided by the PKI file:
\brief Returns the device with the specified device name. \param deviceName, the device name of the device of interest. \return Device, the Device object with the specified device name. -
getDeviceAt
Information provided by the PKI file:
\brief Returns the device at the specified index. \param index, the index of the device of interest. \return Device, the Device object at the specified index.- Specified by:
getDeviceAtin interfaceNetwork- Parameters:
index- Takes in a parameter of index- Returns:
- Device Returns a Device
-
getDeviceCount
public int getDeviceCount()Information provided by the PKI file:
\brief Returns the number of devices in the network. \return int, the number of devices in the network.- Specified by:
getDeviceCountin interfaceNetwork- Returns:
- int Returns a int
-
getLinkCount
public int getLinkCount()- Specified by:
getLinkCountin interfaceNetwork- Returns:
- int Returns a int
-
getLinkAt
-
getTotalDeviceAttributeValue
- Specified by:
getTotalDeviceAttributeValuein interfaceNetwork- Parameters:
attributeName- Takes in a parameter of attributeName- Returns:
- double Returns a double
-